﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;

namespace CreateLogCategory
{
    public class Program
    {
        public static void Main(string[] args)
        {
            CreateEventLog();
        }

        public static void AddSource(string source, string log)
        {
            try
            {
                EventLog.CreateEventSource(source, log);
                Console.WriteLine(source + " was created");
            }
            catch (Exception e)
            {
                Console.WriteLine("Could not write to event viewer=" + source + "; exception=" + e);
            }
        }

 
        public static void CreateEventLog()
        {
            AddSource("TriQuint", "TriQuint");
            //AddSource("TQS", "Application");
        }
    }
}
